# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class MaintenanceWindowSpec(object):

    def __init__(self, startTime, periodType=None, startDay=None, timeZone=None, duration=None):
        """
        :param periodType: (Optional) daily, weekly, monthly， 默认 weekly
        :param startDay: (Optional) 维护操作开始具体日期, 仅对 periodType 取值为 weekly 或 monthly 时有效, periodType 为 weekly 时可以取 1-7, periodType 为 monthly 时可取 1-28

        :param startTime:  维护操作开始具体时间. 时间格式符合RFC3339，并使用 UTC 时间，精确到分钟，例如 23:27
        :param timeZone: (Optional) 时区，使用 IANA 数据格式，例如："Asia/Shanghai" 或 "America/Los_Angeles"，默认 "UTC"
        :param duration: (Optional) 维护运行时长: 4-24 小时，步长 1 小时， 默认为： 4小时
        """

        self.periodType = periodType
        self.startDay = startDay
        self.startTime = startTime
        self.timeZone = timeZone
        self.duration = duration
